/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ooprinciples.polymorphism.Impl;

import za.ac.cput.ooprinciples.polymorphism.Employee;

/**
 *
 * @author Abduraghmaan
 */
public class PartTimeEmployee implements Employee {

    private double salary;
    private String name;

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setSalary(double salary) {
       this.salary = salary;
    }

    @Override
    public double getSalary() {
        return salary;
    }

    @Override
    public double calcIncrease(double increase) {
        double salaryIncrease;
        
        salaryIncrease = (salary * increase) + salary;
      
        
        return salaryIncrease;
    }
    
}
